
 
 F u n c t i o n :   s e t C i r c u l a r T a b b i n g ( d o m C o n t a i n e r E l e m e n t ) 
 
 
 
 S h o r t h a n d :   s e t C i r c u l a r ( d o m C o n t a i n e r E l e m e n t ) 
 
 
 
 D e s c r i p t i o n :   S e t s   c i r c u l a r   t a b b i n g   f o r   a l l   f o c u s a b l e   a c t i v e   e l e m e n t s   w i t h i n   t h e   s p e c i f i e d   D O M   c o n t a i n e r   e l e m e n t . 
 
 
 
 R e t u r n s :   A r r a y   o f   f o c u s a b l e   a c t i v e   e l e m e n t s ,   o r   $ A   o b j e c t   i f   c h a i n e d . 
 
 
 
 N o t e :   W h e n   s e t ,   u s i n g   t h e   T a b   k e y   t o   m o v e   f o c u s   f r o m   o n e   f o c u s a b l e   e l e m e n t   t o   a n o t h e r   w i l l   m o v e   b a c k   t o   t h e   f i r s t   f o c u s a b l e   e l e m e n t   i n   t h e   c o n t a i n e r ,   a n d   t h e   s a m e   i n   r e v e r s e   w h e n   p r e s s i n g   S h i f t + T a b   t o   g o   b a c k w a r d s .   T h i s   i s   o f t e n   u s e d   f o r   d i a l o g s   o r   t e m p o r a r y   c o n t e n t   p a n e l s   t h a t   c a n   b e   c l o s e d   t o   r e s u m e   n o r m a l   f o c u s   m o v e m e n t   a f t e r w a r d s . 
 
 
 
 E x a m p l e : 
 
 
 
 / /   S e t   c i r c u l a r   t a b b i n g   w i t h i n   a   s p e c i f i c   c o n t a i n e r   e l e m e n t . 
 
 v a r   f o c u s a b l e E l e m e n t s A r r a y   =   $ A . s e t C i r c u l a r T a b b i n g ( d o m C o n t a i n e r E l e m e n t ) ; 
 
 
 
 / /   O r   t h e   s a m e   u s i n g   c h a i n i n g 
 
 
 
 / /   S e t   c i r c u l a r   t a b b i n g   w i t h i n   a   s p e c i f i c   c o n t a i n e r   e l e m e n t . 
 
 v a r   m y C h a i n   =   $ A ( d o m C o n t a i n e r E l e m e n t ) . s e t C i r c u l a r T a b b i n g ( ) ; 
 
 
 
 / /   T o   r e t u r n   t h e   m o d i f i e d   o b j e c t   w i t h i n   a   c h a i n ,   u s e   t h e   " r e t u r n ( ) "   m e t h o d . 
 
 
 
 v a r   m y O b j e c t   =   m y C h a i n . r e t u r n ( ) ; 
 
 